package com.bosssoft.user.permission.center.serve.dao.mapper;

import com.bosssoft.user.permission.center.serve.dao.entity.BasicRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 角色信息处理接口，与数据库对接
 * @author lanyukai
 */
@Mapper
public interface BasicRoleMapper extends tk.mybatis.mapper.common.Mapper<BasicRole>{
    /**
     * 根据用户id查找用户角色列表
     * @author lanyukai
     * @date 2024/06/12 20:41
     * @param userId 用户id
     * @return 角色列表
     */
    List<BasicRole> selectRoleListByUserId(long userId);
}